home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / ubuntu-docs / libs / ubuntu-banner.xsl < prev    next >
Text File  |  2009-10-18  |  5KB  |  154 lines

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2.   version="1.0">
  3.  
  4. <!-- This adds the header -->
  5.  
  6. <xsl:template name="header.navigation">
  7. <script xmlns="" src="https://ssl.google-analytics.com/urchin.js"
  8. type="text/javascript"></script>
  9. <script xmlns="" type="text/javascript">
  10. _uacct = "UA-1018242-8";
  11. urchinTracker();
  12. </script>
  13.     <div id="header">
  14.     <div id="logo-floater"><h1><a href="https://help.ubuntu.com" title="Ubuntu Documentation"><img alt="Ubuntu" id="logo" src="https://help.ubuntu.com/htdocs/ubuntunew/img/logo.png" /></a></h1>
  15.     </div>
  16.  
  17. <!-- Provide a search box for clients with and without javascript -->
  18.  
  19. <noscript>
  20.  <form action="http://www.google.com/cse" id="cse-search-box">
  21.    <div>
  22.      <input type="hidden" name="cx" value="004599128559784038176:vj_p0xo-nng" />
  23.      <input type="hidden" name="ie" value="UTF-8" />
  24.      <input type="text" name="q" size="27" />
  25.      <input type="submit" name="sa" value="Search" />
  26.    </div>
  27.  </form>
  28. </noscript>
  29.  
  30. <script>
  31.  document.write('<form action="https://help.ubuntu.com/search.html" id="cse-search-box">');
  32.  document.write('  <div>');
  33.  document.write('    <input type="hidden" name="cof" value="FORID:9" />');
  34.  document.write('    <input type="hidden" name="cx" value="004599128559784038176:vj_p0xo-nng" />');
  35.  document.write('    <input type="hidden" name="ie" value="UTF-8" />');
  36.  document.write('    <input type="text" name="q" size="27" />');
  37.  document.write('    <input type="submit" name="sa" value="Search" />');
  38.  document.write('  </div>');
  39.  document.write('</form>');
  40. </script>
  41.  
  42. <!-- Site Banner -->
  43.  
  44.     <div id="sitename"><a href="https://help.ubuntu.com/"><img alt="Official Documentation" src="https://help.ubuntu.com/htdocs/ubuntunew/img/help-about.png" /><span>Official Documentation</span></a></div>
  45.     </div>
  46. </xsl:template>
  47.  
  48. <!-- Breadcrumbs -->
  49.  
  50. <xsl:template name="breadcrumbs">
  51.   <xsl:param name="this.node" select="."/>
  52.   <div class="breadcrumbs">
  53.     <a href="https://help.ubuntu.com/">Ubuntu Documentation</a>
  54.       <xsl:text> > </xsl:text>
  55.     <a href="https://help.ubuntu.com/9.10">Ubuntu 9.10</a>
  56.       <xsl:text> > </xsl:text>
  57.     <xsl:for-each select="$this.node/ancestor::*">
  58.       <span class="breadcrumb-link">
  59.         <a>
  60.           <xsl:attribute name="href">
  61.             <xsl:call-template name="href.target">
  62.               <xsl:with-param name="object" select="."/>
  63.               <xsl:with-param name="context" select="$this.node"/>
  64.             </xsl:call-template>
  65.           </xsl:attribute>
  66.           <xsl:apply-templates select="." mode="title.markup"/>
  67.         </a>
  68.       </span>
  69.       <xsl:text> > </xsl:text>
  70.     </xsl:for-each>
  71.     <!-- And display the current node, but not as a link -->
  72.     <span class="breadcrumb-node">
  73.       <xsl:apply-templates select="$this.node" mode="title.markup"/>
  74.     </span>
  75.   </div>
  76. </xsl:template>
  77.  
  78. <!-- This adds the footer -->
  79.  
  80. <xsl:template name="user.footer.navigation">
  81. <hr />
  82. <div id="footer">
  83.  
  84.   <div id="ubuntulinks">
  85.  
  86.     <p>The material in this document is available under a free license, see <a href="/legal.html">Legal</a> for details<br />
  87.     For information on contributing see the <a href="https://wiki.ubuntu.com/DocumentationTeam">Ubuntu Documentation Team wiki page</a>. To report a problem, visit the <a href="https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs">bug page for Ubuntu Documentation</a></p>
  88.  
  89.   </div>
  90.  
  91. </div>
  92.  
  93. <div id="bottomcap">
  94.     <img src="https://help.ubuntu.com/htdocs/ubuntunew/img/cap-bottom.png" alt=""/>
  95. </div>
  96.  
  97. </xsl:template>
  98.  
  99. <!-- This adds the wrapper elements -->
  100.  
  101. <xsl:template name="chunk-element-content">
  102.   <xsl:param name="prev"/>
  103.   <xsl:param name="next"/>
  104.   <xsl:param name="nav.context"/>
  105.   <xsl:param name="content">
  106.     <xsl:apply-imports/>
  107.   </xsl:param>
  108.  
  109.   <xsl:call-template name="user.preroot"/>
  110.  
  111.   <html>
  112.     <xsl:call-template name="html.head">
  113.       <xsl:with-param name="prev" select="$prev"/>
  114.       <xsl:with-param name="next" select="$next"/>
  115.     </xsl:call-template>
  116.  
  117.     <body>
  118.     <div id="round">
  119.     <img id="topcap" alt="" src="https://help.ubuntu.com/htdocs/ubuntunew/img/cap-top.png" />
  120.     <div id="layout" class="container clear-block">
  121.       <xsl:call-template name="body.attributes"/>
  122.       <xsl:call-template name="user.header.navigation"/>
  123.  
  124.       <xsl:call-template name="header.navigation">
  125.         <xsl:with-param name="prev" select="$prev"/>
  126.         <xsl:with-param name="next" select="$next"/>
  127.         <xsl:with-param name="nav.context" select="$nav.context"/>
  128.       </xsl:call-template>
  129.  
  130.       <xsl:call-template name="user.header.content"/>
  131.     <div id="page">
  132.     <div id="content">
  133.       <xsl:call-template name="breadcrumbs"/>
  134.       <xsl:copy-of select="$content"/>
  135.     </div>
  136.       <xsl:call-template name="user.footer.content"/>
  137.  
  138.       <xsl:call-template name="footer.navigation">
  139.         <xsl:with-param name="prev" select="$prev"/>
  140.         <xsl:with-param name="next" select="$next"/>
  141.         <xsl:with-param name="nav.context" select="$nav.context"/>
  142.       </xsl:call-template>
  143.  
  144.       <xsl:call-template name="user.footer.navigation"/>
  145.     </div>
  146.     </div>
  147.     </div>
  148.     </body>
  149.   </html>
  150.   <xsl:value-of select="$chunk.append"/>
  151. </xsl:template>
  152.  
  153. </xsl:stylesheet>
  154.